<template>
	<view class="page_1">
		<view class="date">
			<view class="time">
				<view class="month"><text>08</text><text>月</text></view>
				<view class="year">2023年</view>
			</view>
			<image v-if="sequence" src="@/static/top@1.png" @click="changeDate()"></image>
			<image v-else src="@/static/down@1.png" @click="changeDate()"></image>
		</view>
		<view class="content">
				<view class="item">
					<view class="item_date">
						<text>2023-08-20</text><text>11:20:30</text>
					</view>
					<view class="price">￥300</view>
				</view>
				<view class="item">
					<view class="item_date">
						<text>2023-08-20</text><text>11:20:30</text>
					</view>
					<view class="price">￥300</view>
				</view>
				<view class="item">
					<view class="item_date">
						<text>2023-08-20</text><text>11:20:30</text>
					</view>
					<view class="price">￥300</view>
				</view>
				<view class="item">
					<view class="item_date">
						<text>2023-08-20</text><text>11:20:30</text>
					</view>
					<view class="price">￥300</view>
				</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				sequence: true,
			};
		},
		methods: {
			changeDate() {
				this.sequence = !this.sequence
			}
		}
	}
</script>

<style lang="scss" scoped>
	.page_1{
		padding: 0 30rpx 42rpx 30rpx;
		box-sizing: border-box;
	}
	.date {
		font-family: Source Han Sans CN-Medium, Source Han Sans CN;
		font-weight: 500;
		color: #222222;
		display: flex;
		align-items: center;
		font-style: 26rpx;
		gap: 0 14rpx;
		margin-top: 50rpx;
		line-height: 1em;

		.time {
			display: flex;
			align-items: flex-end;

			.month {
				:first-child {
					font-size: 36rpx;
				}
				:last-child{
					margin-right:8rpx ;
				}
			}
		}

		image {
			width: 18rpx;
			height: 14rpx;
		}
	}
	.content{
		width: 690rpx;
		background: #FFFFFF;
		border-radius: 16rpx ;
		margin-top: 28rpx;
		padding:0 24rpx;
		box-sizing: border-box;
		& .item:last-child {
			border: none;
		}
		.item{
			width: 100%;
			height: 96rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			border-bottom:2rpx solid #ECECEC;
	
			.item_date{
				display: flex;
				gap:0 10rpx;
				font-size: 26rpx;
				font-family: Source Han Sans CN-Regular, Source Han Sans CN;
				font-weight: 400;
				color: #555555;
			}
			.price{
				font-size: 32rpx;
				font-family: Source Han Sans CN-Medium, Source Han Sans CN;
				font-weight: 500;
				color: #222222;
				line-height: 1em;
			}
		}
	
	}
</style>
